home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / News Stacks / Jan.'91AMUG News™.cpt / Jan.'91AMUG News™ / card_26641.txt < prev    next >
Text File  |  1990-12-30  |  3KB  |  100 lines

  1. -- card: 26641 from stack: in.'91AMUG News‚Ñ¢
  2. -- bmap block id: 11697
  3. -- flags: 0000
  4. -- background id: 3780
  5. -- name: Word
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=61 top=39 right=61 bottom=101
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 21001 / 21001
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: 
  20. ----- HyperTalk script -----
  21. on mouseDown
  22.   set icon of me to "EyeClose"
  23. end mouseDown
  24.  
  25. on mouseUp
  26.   set icon of me to "EyeOpen"
  27.   dispPict "Pro1"
  28. end mouseUp
  29.  
  30.  
  31.  
  32.  
  33. -- part 2 (button)
  34. -- low flags: 00
  35. -- high flags: 0000
  36. -- rect: left=272 top=52 right=74 bottom=312
  37. -- title width / last selected line: 0
  38. -- icon id / first selected line: 21001 / 21001
  39. -- text alignment: 1
  40. -- font id: 0
  41. -- text size: 12
  42. -- style flags: 0
  43. -- line height: 16
  44. -- part name: 
  45. ----- HyperTalk script -----
  46. on mouseDown
  47.   set icon of me to "EyeClose"
  48. end mouseDown
  49.  
  50. on mouseUp
  51.   set icon of me to "EyeOpen"
  52.   dispPict "Pro2"
  53. end mouseUp
  54.  
  55.  
  56.  
  57.  
  58. -- part contents for background part 2
  59. ----- text -----
  60. 14
  61.  
  62. -- part contents for background part 9
  63. ----- text -----
  64. Prograph
  65.  
  66. -- part contents for background part 8
  67. ----- text -----
  68. ..........................By Mark Gardner
  69.  
  70. -- part contents for background part 1
  71. ----- text -----
  72. Figure 1:              The universal method window. When you double click on the recursive factorial method, the icon zooms out to become the first window seen in figure 2. The name of the method is shown as the window title. The icon next to the window title signifies that the window contains a method diagram. The bars at the top and bottom of the window content represent the input data and output data to the method. Data flows from the input bar to the output bar along links represented by lines. The data lines have a root at the upper end into which the data flows and a terminal at the lower end out of which the data flows. Both roots and terminals are represented by circles. In general, there will be as many roots on the input bar as there is data available. There will also be as 
  73. many terminals on the output bar as there are results to be passed on.
  74.  
  75.  
  76. -- part contents for background part 10
  77. ----- text -----
  78. Figure 2: The recursive factorial method.
  79.  
  80. Notice that the input root is connected to three other icons. The icons represent operations that will act on the data. There are two kinds of operations: primitives or methods. Primitives are operations such as ‚Äú‚⧂Äù and ‚Äú*‚Äù that are built into Prograph for your use. Many of the common operations that you would want to perform are included. If you need a primitive that isn‚Äôt available, Prograph allows you to link in code from MPW or Lightspeed C. Methods are operations you create within Prograph and come in two varieties - class and universal. Class methods belong to the class in which they are defined and are created to 
  81. manipulate class 
  82. attributes or cause 
  83. a desired class 
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.